package com.example.mybatisdemo1.enity;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class UserEntity {
    //要尽量保证属性名和字段名一致，因为一致得时候MyBatis会自动帮你进行关联
    //接收得时候，我们保证Java中类型比对应字段的类型大或者相等就行
    private int id;
    private String username;
    private String password;
    private String photo;
    private LocalDateTime createtime;
    private LocalDateTime updatetime;
    private Integer state;
}
